package com.bwie.remote;

import com.bwie.common.domain.response.UserInfo;
import com.bwie.common.result.Result;
import com.bwie.remote.focaty.SysUserRemoteFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "bwie-system",fallbackFactory = SysUserRemoteFallback.class)
public interface SysUserRemote {

    /**
     * 根据手机号查询用户信息
     * @param phone
     * @return
     */
    @GetMapping("findByPhone/{phone}")
    public Result<UserInfo> findByPhone(@PathVariable("phone") String phone);
}
